DOMException: String contains an invalid character